import router from "./routes/index";
import { RouterProvider } from "react-router-dom";
import type { ReactElement } from "react";

function App(): ReactElement {
  return (
    <RouterProvider router={router} />
    // <BrowserRouter>
    //  <Routes>
    //     <Route path="/login" element={<Login />} />
    //     <Route
    //       path="/"
    //       element={
    //         <Auth>
    //           <Admin />
    //         </Auth>
    //       }
    //     >

    //       <Route path="/withdraw-record" element={<WithdrawRecord />} />
    //     </Route>
    //     <Route path="*" element={<NotFound />} />
    //   </Routes>
    // </BrowserRouter>
  );
}

export default App;
